package cn.guangboyuan.dynamindatasource;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * exclude = {DataSourceAutoConfiguration.class} 排除DataSource自动配置，不配置会引起循环引用
 *
 * @author RedAnts
 */
@MapperScan("cn.guangboyuan.dynamindatasource.mapper")
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class DynaminDatasourceApplication {

    public static void main(String[] args) {
        SpringApplication.run(DynaminDatasourceApplication.class, args);
    }

}
